/*
* created by Administrator on 2018/12/3
* 好的代码像粥一样,是得用时间和精力熬的。
*/
const mongoose = require('mongoose');
const schema = require('./schemas');
let creatModel = (modelName, schema) => {
    return mongoose.model(modelName, schema)
}
const User = creatModel('User', schema.userSchema);
module.exports = {
    User
};
